<html>
<head>
  <link rel="stylesheet" type="text/css" href="main.css">
</head>
<body>
  <div class="main">
    <h1>Namespace: joker.http</h1>
    <span class="var-added">v1.0</span>
    <h2>Contents</h2>
    <ul>
      <li>
        <a href="#_summary">Summary</a>
      </li>
      <li>
        <a href="#_index">Index</a>
      </li>
      <li>
        <a href="#_constants">Constants</a>
      </li>
      <li>
        <a href="#_variables">Variables</a>
      </li>
      <li>
        <a href="#_functions">Functions, Macros, and Special Forms</a>
      </li>
    </ul>
    <h2 id="_summary">Summary</h2>
    <p class="var-docstr">Provides HTTP client and server implementations.</p>
    <h2 id="_index">Index</h2>
    <ul class="index">
      <li>
  <a href="#send">send</a>
</li>
<li>
  <a href="#start-file-server">start-file-server</a>
</li>
<li>
  <a href="#start-server">start-server</a>
</li>

    </ul>
    <h2 id="_constants">Constants</h2>
    Constants are variables with <tt>:const true</tt> in their metadata. Joker currently does not recognize them as special; as such, it allows redefining them or their values.
    <ul>
      (None.)
    </ul>
    <h2 id="_variables">Variables</h2>
    <ul>
      (None.)
    </ul>
    <h2 id="_functions">Functions, Macros, and Special Forms</h2>
    <ul>
      <li>
  <h3 class="Function" id="send">send</h3>
  <span class="var-kind Function">Function</span>
  <span class="var-added">v1.0</span>
  <pre class="var-usage"><div><code>(send request)</code></div>
</pre>
  <p class="var-docstr">Sends an HTTP request and returns an HTTP response.<br>
  request is a map with the following keys:<br>
  - url (string)<br>
  - method (string, keyword or symbol, defaults to :get)<br>
  - body (string)<br>
  - host (string, overrides Host header if provided)<br>
  - headers (map).<br>
  All keys except for url are optional.<br>
  response is a map with the following keys:<br>
  - status (int)<br>
  - body (string)<br>
  - headers (map)<br>
  - content-length (int)</p>
  
  
</li>
<li>
  <h3 class="Function" id="start-file-server">start-file-server</h3>
  <span class="var-kind Function">Function</span>
  <span class="var-added">v1.0</span>
  <pre class="var-usage"><div><code>(start-file-server addr root)</code></div>
</pre>
  <p class="var-docstr">Starts HTTP server on the TCP network address addr that<br>
  serves HTTP requests with the contents of the file system rooted at root.</p>
  
  
</li>
<li>
  <h3 class="Function" id="start-server">start-server</h3>
  <span class="var-kind Function">Function</span>
  <span class="var-added">v1.0</span>
  <pre class="var-usage"><div><code>(start-server addr handler)</code></div>
</pre>
  <p class="var-docstr">Starts HTTP server on the TCP network address addr.</p>
  
  
</li>

    </ul>
  </div>
</body>
<script src="main.js"></script>
</html>
